package cloud.lysky.java.on.design_pattern.observer;

/**
 * @author luoly
 * @describe
 * @date 2022-08-20 11:11
 **/
//纽约时报
public class NYTimes implements Observer{
    @Override
    public void notify(String tweet) {
        if (tweet != null && tweet.contains("money")){
            System.out.println("Breaking news in NY!" + tweet);
        }
    }
}